package com.keyware.kd.repository.mybatis.itf.auditlog;

import com.keyware.kd.repository.entity.auditlog.AuditLog;
import com.keyware.kd.repository.entity.auditlog.UserAuditLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAuditLogMapper {

    int deleteByPrimaryKey(String id);

    int deleteAudit(List<?> listId);

    List<UserAuditLog> selectAudit(List<String> listId);

    int insert(UserAuditLog record);

    int insertSelective(UserAuditLog record);

    UserAuditLog selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserAuditLog record);

    int updateByPrimaryKey(UserAuditLog record);

    List<UserAuditLog> selectAll(@Param("userId") String userId, @Param("projectSource") String projectSource);

    List<UserAuditLog> safeAuditLog(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("projectSource") String projectSource);

    List<UserAuditLog> safeSecretAuditLog(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("projectSource") String projectSource);
    /**
   	 *@author 赵亚舟
   	 *@title 查询管理员审计页面信息
   	 *@return
   	 *@date 20200220
   	 */
    List<UserAuditLog> selectAdminLog(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("projectSource") String projectSource);
    /**
     * @Title: selectAllLog
     * @Description: 查询所有日期信息
     * @param
     * @return
     * @author 赵亚舟
     * @return List<AuditLog>
     */
    List<UserAuditLog> selectAllLog(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("projectSource") String projectSource);


    /**
     * 查询日志列表中
     * @return
     */
    List<UserAuditLog> selectLogUserName();


    /**
     * 根据条件查询日志数据
     * @param userAuditLog
     * @return
     */
    List<UserAuditLog> selectUserAuditLogBySelective(UserAuditLog userAuditLog);
}